import time

from selenium import webdriver
from selenium.webdriver.common.by import By

# driver = webdriver.Chrome()
# driver.get("https://www.baidu.com")
# input_element = driver.find_element(by=By.ID, value="kw")
# input_element.send_keys("selenium")
# time.sleep(3)
# submit_element = driver.find_element(by=By.ID, value="su")
# submit_element.click()
# time.sleep(3)
# driver.quit()

driver = webdriver.Chrome()
driver.get("https://www.saucedemo.com/")
# print(driver.title, driver.current_url, driver.page_source)
time.sleep(1)
driver.get("https://www.baidu.com")
time.sleep(1)
driver.get("https://www.jd.com")
time.sleep(1)
driver.get("https://www.pinduoduo.com")
time.sleep(1)
driver.back()
time.sleep(1)
driver.back()
time.sleep(1)
driver.back()
time.sleep(1)
driver.forward()
time.sleep(1)
driver.refresh()
time.sleep(3)

driver.quit()
